package com.hqj.demo;

import java.io.Serializable;

/**
 * 用户类
 */
public class User implements Serializable {

    private static final long serialVersionUID = -202008101123L;
    private String loginName;//登录名
    private String userName;//用户名
    private String type;
    private String sex;
    private String password;

    public User() {
    }

    public User(String loginName, String userName, String type, String sex, String password) {
        this.loginName = loginName;
        this.userName = userName;
        this.type = type;
        this.sex = sex;
        this.password = password;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "loginName='" + loginName + '\'' +
                ", userName='" + userName + '\'' +
                ", type='" + type + '\'' +
                ", sex='" + sex + '\'' +
                ", password='" + password + '\'';
    }
}
